#include "datapos.h"


// 扇区起始地址计算函数
uint32_t W25Q64_GetSectorAddress(uint16_t sector_num)
{
    if(sector_num >= W25Q64_SECTOR_COUNT)
        return 0xFFFFFFFF;  // 无效扇区号
    
    return sector_num * W25Q64_SECTOR_SIZE;
}
